package highlighter.ast.impl;

import highlighter.ast.IASTNode;
import highlighter.visitor.IASTVisitor;

public class Parameter extends Statement {

	private DeclareStmt declStmt;
	
	public Parameter(DeclareStmt stmt)
	{
		this.declStmt = stmt;
	}
	
	public VarType getVarType()
	{
		return this.declStmt.getVarType();
	}
	
	public Identifier getId()
	{
		return this.declStmt.getId();
	}
	
	@Override
	public Object accept(IASTVisitor visitor) {
		return visitor.visit(this);
	}

}
